package 锁.lock.fairLock;

/**
 * @author: wh(1835734390 @ qq.com)
 * @date: 2023/9/5 15:43
 * @description:
 * @version:
 */
public class test3 {
    public static void main(String[] args) {
        FairLock fairLock = new FairLock();
        orignThread thead[] = new orignThread[10];
        for (int i = 0; i < 10; i++) {
            thead[i] = new orignThread(fairLock);
            thead[i].setName("A" + i);
        }
        for (int i = 0; i < 10; i++) {
            thead[i].start();
        }
    }
}


